Socket
Socket
Sign inDemoInstall

@highoutput/amqp

Package Overview
Dependencies
Maintainers
5
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highoutput/amqp

A simplified client for ActiveMQ


Version published
Weekly downloads
15
decreased by-21.05%
Maintainers
5
Weekly downloads
 
Created
Source

amqp

A simplified abstraction of the AMQP 1.0 protocol

Usage

RPC

import Amqp from '@highoutput/amqp';
import assert from 'assert';

async function main() {
  const amqp = new Amqp();

  await amqp.createWorker(
    'queue',
    async message => message
  );
  const client = await amqp.createClient('queue');

  const result = await client('Hello World!');
  assert.equal(result, 'Hello World!');
}

main();

PubSub

import Amqp from '@highoutput/amqp';
import assert from 'assert';

async function main() {
  const amqp = new Amqp();

  await amqp.createSubscriber(
    'topic.*',
    async message => assert.equal(message, 'Hello World!')
  );

  const publish = await amqp.createPublisher('topic.hello');
  publish('Hello World!');
}

main();

Keywords

FAQs

Package last updated on 05 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc